package com.yongbao.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yongbao.common.PageInfo;
import com.yongbao.model.domain.DishSpecificationDO;
import com.yongbao.model.request.DishSpecificationRequest;
import com.yongbao.model.vo.DishSpecificationVO;

import java.util.List;

/**
 * @author zhanghong
 */
public interface DishSpecificationService extends IService<DishSpecificationDO> {

    /**
     * 根据主键查询
     * @param id
     * @return
     */
    DishSpecificationVO getByKey(long id);
    /**
     * 分页查询，手动分页
     * @param request
     * @return
     */
    PageInfo<DishSpecificationVO> pageQuery(DishSpecificationRequest request);
    /**
     * 列表查询
     * @param request
     * @return
     */
    List<DishSpecificationVO> listQuery(DishSpecificationRequest request);
    /**
     * 新增
     * @param request
     * @return
     */
    Boolean add(DishSpecificationRequest request);
    /**
     * 根据主键更新
     * @param request
     * @return
     */
    Boolean updateByKey(DishSpecificationRequest request);
    /**
     * 根据主键删除
     * @param ids
     * @return
     */
    Boolean delByKey(String ids);

}
